package com.example.lemis.model.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class LogDTO {
    private Long id;
    @NotBlank(message = "操作模块不能为空")
    private String module;
    @NotBlank(message = "操作类型不能为空")
    private String action;
    @NotNull(message = "操作内容不能为空")
    private Long targetId;
    @NotBlank(message = "目标表不能为空")
    private String targetTable;
    @NotNull(message = "操作结果不能为空")
    private Boolean status;

    private String errorMsg;
}
